package com.zmn.brs.dubbo;

import com.github.ltsopensource.spring.boot.annotation.EnableJobClient;
import com.github.ltsopensource.spring.boot.annotation.EnableTaskTracker;
import com.zmn.manager.common.database.config.OneMasterMultiSlaveDataSourceConfiguration;
import com.zmn.manager.mq.annotation.EnableMQConsume;
import com.zmn.manager.mq.annotation.EnableMQSend;
import org.apache.dubbo.config.spring.context.annotation.DubboComponentScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.data.mongo.MongoDataAutoConfiguration;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.annotation.Import;

/**
 * @author quanjic
 * @version v1.0
 * @since 2020/4/23 10:26
 **/
@DubboComponentScan(basePackages = "com.zmn.brs.dubbo.impl")
@SpringBootApplication(scanBasePackages = {"com.zmn.brs"}, exclude = {DataSourceAutoConfiguration.class, MongoDataAutoConfiguration.class})
@Import(OneMasterMultiSlaveDataSourceConfiguration.class)
@EnableJobClient
@EnableMQSend
public class ZmnBrsDubboApplication {

    public static void main(String[] args) {
        SpringApplication.run(ZmnBrsDubboApplication.class, args);
    }

}
